package com.wxisme.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.wxisme.ssm.mapper.PhotoMapper;
import com.wxisme.ssm.po.Photo;
import com.wxisme.ssm.service.PhotoService;

/**
 *
 *@author wxisme
 *@time 2015-9-15 上午10:39:15
 */
public class PhotoServiceImpl implements PhotoService {
	
	@Autowired
	private PhotoMapper photoMapper;
	
	@Override
	public void insertPhoto(Photo photo) throws Exception {
		photoMapper.insertPhoto(photo);
	}
	
	@Override
	public List<Photo> selectPhotoByAlbumPath(String albumPathName)
			throws Exception {
		return photoMapper.selectPhotoByAlbumPath(albumPathName);
	}
	
	
	@Override
	public void deletePhotoByAlbum(String albumPathName) throws Exception {
		photoMapper.deletePhotoByAlbum(albumPathName);
	}
	
	@Override
	public void deletePhotoByBatch(String pathName) throws Exception {
		photoMapper.deletePhotoByBatch(pathName);
	}
	

}
